Skip to content

Adopt GitHub enhanced billing platform API for Actions usage#50

Open
Copilot wants to merge 4 commits into
mainfrom
copilot/adopt-billing-usage-api
Open

Adopt GitHub enhanced billing platform API for Actions usage#50
Copilot wants to merge 4 commits into
mainfrom
copilot/adopt-billing-usage-api

Conversation

Copilot AI commented Mar 21, 2026

Copy link
Copy Markdown
Contributor
  • Test CLI against real targets (codiform, geoffreywiseman, paul-hammant, well-known orgs)
  • Diagnose: old timing API is dead; new billing API returns 404 (not on enhanced billing) or 403 (wrong token) for all tested targets
  • Fix GetActionsUsage: 404 → nil, nil; 403 → typed BillingUnavailableError
  • Fix getOwnerActionsUsage: handle nil report as empty map (404 path)
  • Add isBillingUnavailable and printWarning helpers
  • BillingUnavailableError (403): print warning and continue with 0ms rows instead of aborting
  • Build passes, all tests pass
Original prompt

This section details on the original issue you should resolve

<issue_title>Adopt Billing Usage API</issue_title>
<issue_description>GitHub has an item on their roadmap for a more advanced Billing Usage API (although the description is lacking real detail).

The current timeline is "future", which doesn't suggest that this will be available anytime soon.</issue_description>

Comments on the Issue (you are @copilot in this section)

@geoffreywiseman Looks like the previous item has been closed without being implemented because it's outdated and there may be a new issue soon, but for now there's nothing done and nothing scheduled. @geoffreywiseman Doesn't look like there's been any updates on the roadmap to me. @geoffreywiseman Looks like not only has the billing usage API been released, but the existing API may be deprecated to an extent that it's basically reporting '0' for all workflows, which explains why I don't see values very often when I'm testing lately. I know there's always been some gaps between the information I'd like to retrieve and what's available, but seemed like I was getting even less data lately, and now I think this may be why.

📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.

Copilot AI changed the title [WIP] Adopt Billing Usage API Adopt GitHub enhanced billing platform API for Actions usage Mar 21, 2026
Copilot AI requested a review from geoffreywiseman March 21, 2026 20:43
@geoffreywiseman geoffreywiseman marked this pull request as ready for review March 22, 2026 19:23
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. enhancement New feature or request labels Mar 22, 2026
…able billing data

Co-authored-by: geoffreywiseman <49935+geoffreywiseman@users.noreply.github.com>
Agent-Logs-Url: https://github.com/codiform/gh-actions-usage/sessions/9a21c5ae-990a-49a1-9229-3e8a86dfcba7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adopt Billing Usage API

2 participants